package com.atgugu.springcloud.mapper;

import com.atgugu.springcloud.entities.Account;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author Administrator
 */
public interface AccountMapper extends Mapper<Account> {

    //扣减账户余额(操作复杂,不会自动生成,需要自定义)
    void decrease(@Param("userId") Long userId, @Param("money") Long money);
}
